@csrf
<div class="layui-form-item">
    <label for="name" class="layui-form-label">技能名称</label>
    <div class="layui-input-block">
        <input type="text" id="name" name="name" lay-filter="name" class="layui-input"
            value="{{$skill_pool->name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="type" class="layui-form-label">技能类别</label>
    <div class="layui-input-inline">
        <select name="type">
            <option value="">请选择问题</option>
            @foreach ($dataItems as $value)
            <optgroup label="{{$value->item_name}}">
                    @foreach ($value->itemDetails as $v)
                    <option value="{{$v['id']}}" @if($v['id'] == $skill_pool->type)selected @endif>{{$v['title']}}</option>
                    @endforeach
            </optgroup>
            @endforeach
        </select>
    </div>
</div>
<div class="layui-form-item">
    <label for="code" class="layui-form-label">编码</label>
    <div class="layui-input-block">
        <input type="text" id="code" name="code" lay-filter="code" class="layui-input"
            value="{{$skill_pool->code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="status" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="hidden" name="status" value="0">
        <input type="checkbox" name="status" lay-skin="primary" value="1" {{$skill_pool->status=='1'?'checked':''}}
            title="有效">
    </div>
</div>
<div class="layui-form-item">
    <label for="sort_code" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="sort_code" class="layui-input" value="{{$skill_pool->sort_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea type="text" name="description" class="layui-textarea"
            value="{{$skill_pool->description??''}}"></textarea>
    </div>
</div>